import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-warehouse/erp-write-back-record/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (id) => {
  return request({
    url: '/api/mes-warehouse/erp-write-back-record/detail',
    method: 'get',
    params: {
      id
    }
  });
};

export const sendWriteBack = (id) => {
  return request({
    url: '/api/mes-warehouse/write-back-record/send-write-back',
    method: 'get',
    params: { id }
  });
};
// export const getWriteBackParam = (data) => {
//   return request({
//     url: '/api/mes-docking/write-back/get-write-back-param',
//     method: 'post',
//     data
//   });
// };

export const getWriteBackParam = (id) => {
  return request({
    url: '/api/mes-docking/write-back/get/write/back/param',
    method: 'get',
    params: { id }
  });
};
